const crypto = require('crypto.js')
const key = "123123Lmt" //加密的key
function passwordEncode(str) {
    return crypto.cipher('aes-128-cbc', str, key)
}

function passwordDecode(str) {
    return crypto.decipher('aes-128-cbc', str, key)

}


module.exports = {
    passwordDecode,
    passwordEncode,
}